home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_gimp.idb / usr / freeware / src / gimp / patches.z / patches
Encoding:
Text File  |  1999-07-21  |  83.8 KB  |  2,484 lines

  1. --- ./ltmain.sh    Sat Mar 27 14:16:21 1999
  2. +++ ../gimp-1.0.4/./ltmain.sh    Thu Jul 15 17:15:46 1999
  3. @@ -2,7 +2,7 @@
  4.  # NOTE: Changing this file will not affect anything until you rerun ltconfig.
  5.  #
  6.  # Copyright (C) 1996-1999 Free Software Foundation, Inc.
  7. -# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  8. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9.  #
  10.  # This program is free software; you can redistribute it and/or modify
  11.  # it under the terms of the GNU General Public License as published by
  12. @@ -28,12 +28,8 @@
  13.    # Discard the --no-reexec flag, and continue.
  14.    shift
  15.  elif test "X$1" = X--fallback-echo; then
  16. -  # used as fallback echo
  17. -  shift
  18. -  cat <<EOF
  19. -$*
  20. -EOF
  21. -  exit 0
  22. +  # Avoid inline document here, it may be left over
  23. +  :
  24.  elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  25.    # Yippee, $echo works!
  26.    :
  27. @@ -42,6 +38,15 @@
  28.    exec $SHELL "$0" --no-reexec ${1+"$@"}
  29.  fi
  30.  
  31. +if test "X$1" = X--fallback-echo; then
  32. +  # used as fallback echo
  33. +  shift
  34. +  cat <<EOF
  35. +$*
  36. +EOF
  37. +  exit 0
  38. +fi
  39. +
  40.  # The name of this program.
  41.  progname=`$echo "$0" | sed 's%^.*/%%'`
  42.  modename="$progname"
  43. @@ -49,8 +54,8 @@
  44.  # Constants.
  45.  PROGRAM=ltmain.sh
  46.  PACKAGE=libtool
  47. -VERSION=1.2f
  48. -TIMESTAMP=" (1.385 1999/03/15 17:24:54)"
  49. +VERSION=1.3.2
  50. +TIMESTAMP=" (1.385.2.150 1999/05/26 00:28:32)"
  51.  
  52.  default_mode=
  53.  help="Try \`$progname --help' for more information."
  54. @@ -100,6 +105,7 @@
  55.  show_help=
  56.  execute_dlfiles=
  57.  lo2o="s/\\.lo\$/.${objext}/"
  58. +o2lo="s/\\.${objext}\$/.lo/"
  59.  
  60.  # Parse our command line options once, thoroughly.
  61.  while test $# -gt 0
  62. @@ -460,6 +466,7 @@
  63.      command="$command -o $output_obj"
  64.        fi
  65.  
  66. +      $run $rm "$output_obj"
  67.        $show "$command"
  68.        if $run eval "$command"; then :
  69.        else
  70. @@ -539,6 +546,7 @@
  71.  
  72.        # Suppress compiler output if we already did a PIC compilation.
  73.        command="$command$suppress_output"
  74. +      $run $rm "$output_obj"
  75.        $show "$command"
  76.        if $run eval "$command"; then :
  77.        else
  78. @@ -630,7 +638,13 @@
  79.  # #undef WIN32_LEAN_AND_MEAN
  80.  # #include <stdio.h>
  81.  #
  82. +# #ifdef __cplusplus
  83. +# extern "C" {
  84. +# #endif
  85.  # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  86. +# #ifdef __cplusplus
  87. +# }
  88. +# #endif
  89.  #
  90.  # #include <cygwin/cygwin_dll.h>
  91.  # DECLARE_CYGWIN_DLL( DllMain );
  92. @@ -815,6 +829,7 @@
  93.      ltlibs=
  94.      module=no
  95.      objs=
  96. +    prefer_static_libs=no
  97.      preload=no
  98.      prev=
  99.      prevarg=
  100. @@ -831,11 +846,21 @@
  101.      do
  102.        case "$arg" in
  103.        -all-static | -static)
  104. -    if test "X$arg" = "X-all-static" && test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  105. +    if test "X$arg" = "X-all-static"; then
  106. +      if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  107.          $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  108. +      fi
  109. +      if test -n "$link_static_flag"; then
  110. +        dlopen_self=$dlopen_self_static
  111. +      fi
  112. +    else
  113. +      if test -z "$pic_flag" && test -n "$link_static_flag"; then
  114. +        dlopen_self=$dlopen_self_static
  115. +      fi
  116.      fi
  117.      build_libtool_libs=no
  118.      build_old_libs=yes
  119. +    prefer_static_libs=yes
  120.      break
  121.      ;;
  122.        esac
  123. @@ -873,13 +898,19 @@
  124.            dlself=yes
  125.          elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  126.            dlself=yes
  127. +        else
  128. +          dlself=needless
  129. +          export_dynamic=yes
  130.          fi
  131.          prev=
  132.          continue
  133.          ;;
  134.        *)
  135. -        dlprefiles="$dlprefiles $arg"
  136. -        test "$prev" = dlfiles && dlfiles="$dlfiles $arg"
  137. +        if test "$prev" = dlfiles; then
  138. +          dlfiles="$dlfiles $arg"
  139. +        else
  140. +          dlprefiles="$dlprefiles $arg"
  141. +        fi
  142.          prev=
  143.          ;;
  144.        esac
  145. @@ -903,13 +934,26 @@
  146.        prev=
  147.        continue
  148.        ;;
  149. -    rpath)
  150. -      rpath="$rpath $arg"
  151. -      prev=
  152. -      continue
  153. -      ;;
  154. -    xrpath)
  155. -      xrpath="$xrpath $arg"
  156. +    rpath | xrpath)
  157. +      # We need an absolute path.
  158. +      case "$arg" in
  159. +      [\\/]* | [A-Za-z]:[\\/]*) ;;
  160. +      *)
  161. +        $echo "$modename: only absolute run-paths are allowed" 1>&2
  162. +        exit 1
  163. +        ;;
  164. +      esac
  165. +      if test "$prev" = rpath; then
  166. +        case "$rpath " in
  167. +        *" $arg "*) ;;
  168. +        *) rpath="$rpath $arg" ;;
  169. +        esac
  170. +      else
  171. +        case "$xrpath " in
  172. +        *" $arg "*) ;;
  173. +        *) xrpath="$xrpath $arg" ;;
  174. +        esac
  175. +      fi
  176.        prev=
  177.        continue
  178.        ;;
  179. @@ -928,7 +972,6 @@
  180.      if test -n "$link_static_flag"; then
  181.        compile_command="$compile_command $link_static_flag"
  182.        finalize_command="$finalize_command $link_static_flag"
  183. -      dlopen_self=$dlopen_self_static
  184.      fi
  185.      continue
  186.      ;;
  187. @@ -955,22 +998,16 @@
  188.      ;;
  189.  
  190.        -export-dynamic)
  191. -    if test "$export_dynamic" != yes; then
  192. -      export_dynamic=yes
  193. -      if test -n "$export_dynamic_flag_spec"; then
  194. -        eval arg=\"$export_dynamic_flag_spec\"
  195. -      else
  196. -        arg=
  197. -      fi
  198. -    fi
  199. +    export_dynamic=yes
  200. +    continue
  201.      ;;
  202.  
  203.        -export-symbols | -export-symbols-regex)
  204.      if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  205. -      $echo "$modename: cannot have more than one -exported-symbols"
  206. +      $echo "$modename: not more than one -exported-symbols argument allowed"
  207.        exit 1
  208.      fi
  209. -    if test "$arg" = "-export-symbols"; then
  210. +    if test "X$arg" = "X-export-symbols"; then
  211.        prev=expsyms
  212.      else
  213.        prev=expsyms_regex
  214. @@ -979,14 +1016,18 @@
  215.      ;;
  216.  
  217.        -L*)
  218. -    dir=`$echo "X$arg" | $Xsed -e 's%^-L\(.*\)$%\1%'`
  219. +    dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  220. +    # We need an absolute path.
  221.      case "$dir" in
  222. -    /* | [A-Za-z]:[/\\]*)
  223. -      # Add the corresponding hardcode_libdir_flag, if it is not identical.
  224. -      ;;
  225. +    [\\/]* | [A-Za-z]:[\\/]*) ;;
  226.      *)
  227. -      $echo "$modename: \`-L$dir' cannot specify a relative directory" 1>&2
  228. -      exit 1
  229. +      absdir=`cd "$dir" && pwd`
  230. +      if test -z "$absdir"; then
  231. +        $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  232. +        $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  233. +        absdir="$dir"
  234. +      fi
  235. +      dir="$absdir"
  236.        ;;
  237.      esac
  238.      case " $deplibs " in
  239. @@ -1010,20 +1051,29 @@
  240.      ;;
  241.  
  242.        -l*)
  243. +    if test "$arg" = "-lc"; then
  244. +      case "$host" in
  245. +      *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
  246. +        # These systems don't actually have c library (as such)
  247. +        continue
  248. +        ;;
  249. +      esac
  250. +    elif test "$arg" = "-lm"; then
  251. +      case "$host" in
  252. +      *-*-cygwin* | *-*-beos*)
  253. +        # These systems don't actually have math library (as such)
  254. +        continue
  255. +        ;;
  256. +      esac
  257. +    fi
  258.      deplibs="$deplibs $arg"
  259.      ;;
  260.  
  261.        -module)
  262. -    if test "$module" != yes; then
  263. -      module=yes
  264. -      if test -n "$export_dynamic_flag_spec"; then
  265. -        eval arg=\"$export_dynamic_flag_spec\"
  266. -      else
  267. -        arg=
  268. -      fi
  269. -    fi
  270. +    module=yes
  271. +    continue
  272.      ;;
  273. -    
  274. +
  275.        -no-undefined)
  276.      allow_undefined=no
  277.      continue
  278. @@ -1047,7 +1097,19 @@
  279.      ;;
  280.  
  281.        -R*)
  282. -    xrpath="$xrpath "`$echo "X$arg" | $Xsed -e 's/^-R//'`
  283. +    dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  284. +    # We need an absolute path.
  285. +    case "$dir" in
  286. +    [\\/]* | [A-Za-z]:[\\/]*) ;;
  287. +    *)
  288. +      $echo "$modename: only absolute run-paths are allowed" 1>&2
  289. +      exit 1
  290. +      ;;
  291. +    esac
  292. +    case "$xrpath " in
  293. +    *" $dir "*) ;;
  294. +    *) xrpath="$xrpath $dir" ;;
  295. +    esac
  296.      continue
  297.      ;;
  298.  
  299. @@ -1056,7 +1118,6 @@
  300.      if test -z "$pic_flag" && test -n "$link_static_flag"; then
  301.        compile_command="$compile_command $link_static_flag"
  302.        finalize_command="$finalize_command $link_static_flag"
  303. -      dlopen_self=$dlopen_self_static
  304.      fi
  305.      continue
  306.      ;;
  307. @@ -1128,6 +1189,7 @@
  308.      # it will not redefine variable installed.
  309.      installed=yes
  310.  
  311. +    # Read the .la file
  312.      # If there is no directory component, then add one.
  313.      case "$arg" in
  314.      */* | *\\*) . $arg ;;
  315. @@ -1218,7 +1280,8 @@
  316.        prev=
  317.      fi
  318.  
  319. -    if test "$build_libtool_libs" = yes && test -n "$library_names"; then
  320. +    if test -n "$library_names" &&
  321. +       { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  322.        link_against_libtool_libs="$link_against_libtool_libs $arg"
  323.        if test -n "$shlibpath_var"; then
  324.          # Make sure the rpath contains only unique directories.
  325. @@ -1230,12 +1293,13 @@
  326.  
  327.        # We need an absolute path.
  328.        case "$dir" in
  329. -      /* | [A-Za-z]:[/\\]*) absdir="$dir" ;;
  330. +      [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  331.        *)
  332.          absdir=`cd "$dir" && pwd`
  333.          if test -z "$absdir"; then
  334. -          $echo "$modename: cannot determine absolute directory name of \`$libdir'" 1>&2
  335. -          exit 1
  336. +          $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  337. +          $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  338. +          absdir="$dir"
  339.          fi
  340.          ;;
  341.        esac
  342. @@ -1244,7 +1308,7 @@
  343.        # Skip directories that are in the system default run-time
  344.        # search path, unless they have been requested with -R.
  345.        case " $sys_lib_dlsearch_path " in
  346. -       *" $absdir "*) ;;
  347. +      *" $absdir "*) ;;
  348.        *)
  349.          case "$compile_rpath " in
  350.          *" $absdir "*) ;;
  351. @@ -1251,10 +1315,10 @@
  352.          *) compile_rpath="$compile_rpath $absdir" 
  353.          esac
  354.          ;;
  355. -       esac
  356. +      esac
  357.  
  358.        case " $sys_lib_dlsearch_path " in
  359. -       *" $libdir "*) ;;
  360. +      *" $libdir "*) ;;
  361.        *)
  362.          case "$finalize_rpath " in
  363.          *" $libdir "*) ;;
  364. @@ -1261,7 +1325,7 @@
  365.          *) finalize_rpath="$finalize_rpath $libdir"
  366.          esac
  367.          ;;
  368. -       esac
  369. +      esac
  370.  
  371.        lib_linked=yes
  372.        case "$hardcode_action" in
  373. @@ -1419,6 +1483,12 @@
  374.        exit 1
  375.      fi
  376.  
  377. +    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  378. +      eval arg=\"$export_dynamic_flag_spec\"
  379. +      compile_command="$compile_command $arg"
  380. +      finalize_command="$finalize_command $arg"
  381. +    fi
  382. +
  383.      oldlibs=
  384.      # calculate the name of the file, without its directory
  385.      outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  386. @@ -1441,7 +1511,7 @@
  387.      $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  388.        fi
  389.  
  390. -      if test -n "$dlfiles$dlprefiles"; then
  391. +      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  392.      $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  393.        fi
  394.  
  395. @@ -1461,7 +1531,7 @@
  396.      $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  397.        fi
  398.  
  399. -      if test -n "$export_symbols"; then
  400. +      if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  401.      $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  402.        fi
  403.  
  404. @@ -1500,11 +1570,6 @@
  405.      output_objdir="$output_objdir/$objdir"
  406.        fi
  407.  
  408. -      # All the library-specific variables (install_libdir is set above).
  409. -      library_names=
  410. -      old_library=
  411. -      dlname=
  412. -
  413.        if test -n "$objs"; then
  414.      $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
  415.      exit 1
  416. @@ -1516,7 +1581,7 @@
  417.       exit 1
  418.        fi
  419.  
  420. -      if test -n "$dlfiles$dlprefiles"; then
  421. +      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  422.      $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
  423.        fi
  424.  
  425. @@ -1699,7 +1764,7 @@
  426.  
  427.      dependency_libs="$deplibs"
  428.      case "$host" in
  429. -    *-*-cygwin* | *-*-mingw* | *-*-os2*)
  430. +    *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
  431.        # these systems don't actually have a c library (as such)!
  432.        ;;
  433.      *)
  434. @@ -1747,12 +1812,13 @@
  435.      droppeddeps=no
  436.      case "$deplibs_check_method" in
  437.      pass_all)
  438. +      # Don't check for shared/static.  Everything works.
  439. +      # This might be a little naive.  We might want to check
  440. +      # whether the library exists or not.  But this is on
  441. +      # osf3 & osf4 and I'm not really sure... Just
  442. +      # implementing what was already the behaviour.
  443.        newdeplibs=$deplibs
  444. -            ;; # Don't check for shared/static.  Everything works.
  445. -               # This might be a little naive.  We might want to check
  446. -               # whether the library exists or not.  But this is on
  447. -               # osf3 & osf4 and I'm not really sure... Just
  448. -               # implementing what was already the behaviour.
  449. +      ;;
  450.      test_compile)
  451.        # This code stresses the "libraries are programs" paradigm to its
  452.        # limits. Maybe even breaks it.  We compile a program, linking it
  453. @@ -1800,20 +1866,20 @@
  454.          # Did it work?
  455.          if test $? -eq 0 ; then
  456.            ldd_output=`ldd conftest`
  457. -            libname=`eval \\$echo \"$libname_spec\"`
  458. -            deplib_matches=`eval \\$echo \"$library_names_spec\"`
  459. -            set dummy $deplib_matches
  460. -            deplib_match=$2
  461. -            if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  462. -              newdeplibs="$newdeplibs $i"
  463. -            else
  464. -              droppeddeps=yes
  465. -              echo
  466. -              echo "*** Warning: This library needs some functionality provided by $i."
  467. -              echo "*** I have the capability to make that library automatically link in when"
  468. -              echo "*** you link to this library.  But I can only do this if you have a"
  469. -              echo "*** shared version of the library, which you do not appear to have."
  470. -            fi
  471. +          libname=`eval \\$echo \"$libname_spec\"`
  472. +          deplib_matches=`eval \\$echo \"$library_names_spec\"`
  473. +          set dummy $deplib_matches
  474. +          deplib_match=$2
  475. +          if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  476. +            newdeplibs="$newdeplibs $i"
  477. +          else
  478. +            droppeddeps=yes
  479. +            echo
  480. +            echo "*** Warning: This library needs some functionality provided by $i."
  481. +            echo "*** I have the capability to make that library automatically link in when"
  482. +            echo "*** you link to this library.  But I can only do this if you have a"
  483. +            echo "*** shared version of the library, which you do not appear to have."
  484. +          fi
  485.          else
  486.            droppeddeps=yes
  487.            echo
  488. @@ -1827,7 +1893,6 @@
  489.            fi
  490.          done
  491.        fi
  492. -      deplibs=$newdeplibs
  493.        ;;
  494.      file_magic*)
  495.        set dummy $deplibs_check_method
  496. @@ -1841,7 +1906,7 @@
  497.              potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  498.              for potent_lib in $potential_libs; do
  499.                # Follow soft links.
  500. -              if ls -lLd "$potlib" 2>/dev/null \
  501. +              if ls -lLd "$potent_lib" 2>/dev/null \
  502.               | grep " -> " >/dev/null; then
  503.              continue 
  504.                fi
  505. @@ -1854,11 +1919,11 @@
  506.                while test -h "$potlib" 2>/dev/null; do
  507.              potliblink=`ls -ld $potlib | sed 's/.* -> //'`
  508.              case "$potliblink" in
  509. -            /*) potlib="$potliblink";;
  510. +            [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  511.              *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  512.              esac
  513.                done
  514. -              if eval $file_magic_cmd \"\$potlib\" \
  515. +              if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  516.               | sed 10q \
  517.               | egrep "$file_magic_regex" > /dev/null; then
  518.              newdeplibs="$newdeplibs $a_deplib"
  519. @@ -1881,7 +1946,8 @@
  520.          fi
  521.        done # Gone through all deplibs.
  522.        ;;
  523. -    none | unknown | *) newdeplibs=""
  524. +    none | unknown | *)
  525. +      newdeplibs=""
  526.        if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  527.             -e 's/ -[LR][^ ]*//g' -e 's/[     ]//g' |
  528.           grep . >/dev/null; then
  529. @@ -1923,8 +1989,6 @@
  530.          else
  531.            build_libtool_libs=no
  532.          fi
  533. -        dlname=
  534. -        library_names=
  535.        else
  536.          echo "*** The inter-library dependencies that have been dropped here will be"
  537.          echo "*** automatically added whenever a program is linked with this library"
  538. @@ -1931,13 +1995,17 @@
  539.          echo "*** or is declared to -dlopen it."
  540.        fi
  541.      fi
  542. +    # Done checking deplibs!
  543. +    deplibs=$newdeplibs
  544.        fi
  545.  
  546. -      # test again, we may have decided not to build it any more
  547. +      # All the library-specific variables (install_libdir is set above).
  548. +      library_names=
  549. +      old_library=
  550. +      dlname=
  551. +      
  552. +      # Test again, we may have decided not to build it any more
  553.        if test "$build_libtool_libs" = yes; then
  554. -    deplibs=$newdeplibs
  555. -    # Done checking deplibs!
  556.      # Get the real and link names of the library.
  557.      eval library_names=\"$library_names_spec\"
  558.      set dummy $library_names
  559. @@ -1960,7 +2028,10 @@
  560.      # (e.g. aix) incase we are running --disable-static
  561.      for obj in $libobjs; do
  562.        oldobj=`$echo "X$obj" | $Xsed -e "$lo2o"`
  563. -      test -f $oldobj || ${LN_S} $obj $oldobj
  564. +      if test ! -f $oldobj; then
  565. +        $show "${LN_S} $obj $oldobj"
  566. +        $run ${LN_S} $obj $oldobj || exit $?
  567. +      fi
  568.      done
  569.  
  570.      # Use standard objects if they are pic
  571. @@ -1971,11 +2042,25 @@
  572.          eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  573.        fi
  574.      else
  575. +      gentop="$output_objdir/${outputname}x"
  576. +      $show "${rm}r $gentop"
  577. +      $run ${rm}r "$gentop"
  578. +      $show "mkdir $gentop"
  579. +      $run mkdir "$gentop"
  580. +      status=$?
  581. +      if test $status -ne 0 && test ! -d "$gentop"; then
  582. +        exit $status
  583. +      fi
  584. +      generated="$generated $gentop"
  585. +      
  586.        for xlib in $convenience; do
  587.          # Extract the objects.
  588. -        xdir="$xlib"x
  589. -        generated="$generated $xdir"
  590. +        case "$xlib" in
  591. +        [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  592. +        *) xabs=`pwd`"/$xlib" ;;
  593. +        esac
  594.          xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  595. +        xdir="$gentop/$xlib"
  596.  
  597.          $show "${rm}r $xdir"
  598.          $run ${rm}r "$xdir"
  599. @@ -1985,8 +2070,8 @@
  600.          if test $status -ne 0 && test ! -d "$xdir"; then
  601.            exit $status
  602.          fi
  603. -        $show "(cd $xdir && $AR x ../$xlib)"
  604. -        $run eval "(cd \$xdir && $AR x ../\$xlib)" || exit $?
  605. +        $show "(cd $xdir && $AR x $xabs)"
  606. +        $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  607.  
  608.          libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
  609.        done
  610. @@ -1994,7 +2079,6 @@
  611.  
  612.      if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  613.        eval flag=\"$thread_safe_flag_spec\"
  614. -
  615.        linkopts="$linkopts $flag"
  616.      fi
  617.  
  618. @@ -2002,7 +2086,7 @@
  619.      if test -z "$export_symbols"; then
  620.        if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  621.          $show "generating symbol list for \`$libname.la'"
  622. -        export_symbols="$objdir/$libname.exp"
  623. +        export_symbols="$output_objdir/$libname.exp"
  624.          $run $rm $export_symbols
  625.          eval cmds=\"$export_symbols_cmds\"
  626.          IFS="${IFS=     }"; save_ifs="$IFS"; IFS='~'
  627. @@ -2065,7 +2149,7 @@
  628.      $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  629.        fi
  630.  
  631. -      if test -n "$dlfiles$dlprefiles"; then
  632. +      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  633.      $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  634.        fi
  635.  
  636. @@ -2167,11 +2251,6 @@
  637.      fi 
  638.        fi
  639.      
  640. -      if test "$dlself" = yes && test "$export_dynamic" = no; then
  641. -    $echo "$modename: error: \`-dlopen self' requires \`-export-dynamic'" 1>&2
  642. -    exit 1
  643. -      fi
  644. -
  645.        if test -n "$rpath$xrpath"; then
  646.      # If the user specified any rpath flags, then add them.
  647.      for libdir in $rpath $xrpath; do
  648. @@ -2207,7 +2286,6 @@
  649.          fi
  650.        else
  651.          eval flag=\"$hardcode_libdir_flag_spec\"
  652. -
  653.          rpath="$rpath $flag"
  654.        fi
  655.      elif test -n "$runpath_var"; then
  656. @@ -2244,7 +2322,6 @@
  657.          fi
  658.        else
  659.          eval flag=\"$hardcode_libdir_flag_spec\"
  660. -
  661.          rpath="$rpath $flag"
  662.        fi
  663.      elif test -n "$runpath_var"; then
  664. @@ -2269,6 +2346,16 @@
  665.      output_objdir="$output_objdir/$objdir"
  666.        fi
  667.  
  668. +      # Create the binary in the object directory, then wrap it.
  669. +      if test ! -d $output_objdir; then
  670. +    $show "$mkdir $output_objdir"
  671. +    $run $mkdir $output_objdir
  672. +    status=$?
  673. +    if test $status -ne 0 && test ! -d $output_objdir; then
  674. +      exit $status
  675. +    fi
  676. +      fi
  677. +
  678.        if test -n "$libobjs" && test "$build_old_libs" = yes; then
  679.      # Transform all the library objects into standard objects.
  680.      compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  681. @@ -2289,24 +2376,15 @@
  682.      "") ;;
  683.      *.c)
  684.        # Discover the nlist of each of the dlfiles.
  685. -      nlist="$objdir/${output}.nm"
  686. +      nlist="$output_objdir/${outputname}.nm"
  687.  
  688. -      if test -d $objdir; then
  689. -        $show "$rm $nlist ${nlist}S ${nlist}T"
  690. -        $run $rm "$nlist" "${nlist}S" "${nlist}T"
  691. -      else
  692. -        $show "$mkdir $objdir"
  693. -        $run $mkdir $objdir
  694. -        status=$?
  695. -        if test $status -ne 0 && test ! -d $objdir; then
  696. -          exit $status
  697. -        fi
  698. -      fi
  699. +      $show "$rm $nlist ${nlist}S ${nlist}T"
  700. +      $run $rm "$nlist" "${nlist}S" "${nlist}T"
  701.  
  702.        # Parse the name list into a source file.
  703. -      $show "creating $objdir/$dlsyms"
  704. +      $show "creating $output_objdir/$dlsyms"
  705.  
  706. -      $echo > "$objdir/$dlsyms" "\
  707. +      test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  708.  /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  709.  /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  710.  
  711. @@ -2323,7 +2401,7 @@
  712.        if test "$dlself" = yes; then
  713.          $show "generating symbol list for \`$output'"
  714.  
  715. -        echo ': @PROGRAM@ ' > "$nlist"
  716. +        test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  717.  
  718.          # Add our own program objects to the symbol list.
  719.          progfiles=`$echo "X$objs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  720. @@ -2344,13 +2422,12 @@
  721.  
  722.          # Prepare the list of exported symbols
  723.          if test -z "$export_symbols"; then
  724. -          export_symbols="$objdir/$output.exp"
  725. +          export_symbols="$output_objdir/$output.exp"
  726.            $run $rm $export_symbols
  727.            $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  728.          else
  729. -          $run $rm $export_symbols
  730. -          $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$objdir/$output.exp"'
  731. -          $run eval 'grep -f "$objdir/$output.exp" < "$nlist" > "$nlist"T'
  732. +          $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  733. +          $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  734.            $run eval 'mv "$nlist"T "$nlist"'
  735.          fi
  736.        fi
  737. @@ -2426,7 +2503,7 @@
  738.        fi
  739.  
  740.        pic_flag_for_symtable=
  741. -          case "$host" in
  742. +      case "$host" in
  743.        # compiling the symbol table file with pic_flag works around
  744.        # a FreeBSD bug that causes programs to crash when -lm is
  745.        # linked before any other PIC object.  But we must not use
  746. @@ -2440,12 +2517,16 @@
  747.        esac
  748.  
  749.        # Now compile the dynamic symbol file.
  750. -      $show "(cd $objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  751. -      $run eval '(cd $objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  752. +      $show "(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  753. +      $run eval '(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  754. +
  755. +      # Clean up the generated files.
  756. +      $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  757. +      $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  758.  
  759.        # Transform the symbol file into the correct name.
  760. -      compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$objdir/${output}S.${objext}%"`
  761. -      finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$objdir/${output}S.${objext}%"`
  762. +      compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  763. +      finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  764.        ;;
  765.      *)
  766.        $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  767. @@ -2470,7 +2551,15 @@
  768.      # We have no uninstalled library dependencies, so finalize right now.
  769.      $show "$link_command"
  770.      $run eval "$link_command"
  771. -    exit $?
  772. +    status=$?
  773. +    
  774. +    # Delete the generated files.
  775. +    if test -n "$dlsyms"; then
  776. +      $show "$rm $output_objdir/${outputname}S.${objext}"
  777. +      $run $rm "$output_objdir/${outputname}S.${objext}"
  778. +    fi
  779. +
  780. +    exit $status
  781.        fi
  782.  
  783.        if test -n "$shlibpath_var"; then
  784. @@ -2478,7 +2567,7 @@
  785.      rpath=
  786.      for dir in $temp_rpath; do
  787.        case "$dir" in
  788. -      /* | [A-Za-z]:[/\\]*)
  789. +      [\\/]* | [A-Za-z]:[\\/]*)
  790.          # Absolute path.
  791.          rpath="$rpath$dir:"
  792.          ;;
  793. @@ -2524,7 +2613,6 @@
  794.      link_command="$compile_var$compile_command$compile_rpath"
  795.      relink_command="$finalize_var$finalize_command$finalize_rpath"
  796.      
  797. -    # AGH! Flame the AIX and HP-UX people for me, will ya?
  798.      $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  799.      $echo "$modename: \`$output' will be relinked during installation" 1>&2
  800.        else
  801. @@ -2545,17 +2633,7 @@
  802.        # Replace the output file specification.
  803.        link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  804.        
  805. -      # Create the binary in the object directory, then wrap it.
  806. -      if test ! -d $output_objdir; then
  807. -    $show "$mkdir $output_objdir"
  808. -    $run $mkdir $output_objdir
  809. -    status=$?
  810. -    if test $status -ne 0 && test ! -d $objdir; then
  811. -      exit $status
  812. -    fi
  813. -      fi
  814. -
  815. -      # Delete the old output file.
  816. +      # Delete the old output files.
  817.        $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  818.  
  819.        $show "$link_command"
  820. @@ -2572,7 +2650,7 @@
  821.        # Quote $echo for shipping.
  822.        if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
  823.      case "$0" in
  824. -    /* | [A-Za-z]:[/\\]*) qecho="$SHELL $0 --fallback-echo";;
  825. +    [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
  826.      *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
  827.      esac
  828.      qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  829. @@ -2649,7 +2727,7 @@
  830.      # If there was a directory component, then change thisdir.
  831.      if test \"x\$destdir\" != \"x\$file\"; then
  832.        case \"\$destdir\" in
  833. -      /* | [A-Za-z]:[/\\]*) thisdir=\"\$destdir\" ;;
  834. +      [\\/]* | [A-Za-z]:[\\/]*) thisdir=\"\$destdir\" ;;
  835.        *) thisdir=\"\$thisdir/\$destdir\" ;;
  836.        esac
  837.      fi
  838. @@ -2787,31 +2865,58 @@
  839.      addlibs="$old_convenience"
  840.        fi
  841.  
  842. -      # Add in members from convenience archives.
  843. -      for xlib in $addlibs; do
  844. -    # Extract the objects.
  845. -    xdir="$xlib"x
  846. -    generated="$generated $xdir"
  847. -    xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  848. -
  849. -    $show "${rm}r $xdir"
  850. -    $run ${rm}r "$xdir"
  851. -    $show "mkdir $xdir"
  852. -    $run mkdir "$xdir"
  853. +      if test -n "$addlibs"; then
  854. +    gentop="$output_objdir/${outputname}x"
  855. +    $show "${rm}r $gentop"
  856. +    $run ${rm}r "$gentop"
  857. +    $show "mkdir $gentop"
  858. +    $run mkdir "$gentop"
  859.      status=$?
  860. -    if test $status -ne 0 && test ! -d "$xdir"; then
  861. +    if test $status -ne 0 && test ! -d "$gentop"; then
  862.        exit $status
  863.      fi
  864. -    $show "(cd $xdir && $AR x ../$xlib)"
  865. -    $run eval "(cd \$xdir && $AR x ../\$xlib)" || exit $?
  866. +    generated="$generated $gentop"
  867. +      
  868. +    # Add in members from convenience archives.
  869. +    for xlib in $addlibs; do
  870. +      # Extract the objects.
  871. +      case "$xlib" in
  872. +      [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  873. +      *) xabs=`pwd`"/$xlib" ;;
  874. +      esac
  875. +      xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  876. +      xdir="$gentop/$xlib"
  877.  
  878. -    oldobjs="$oldobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
  879. -      done
  880. +      $show "${rm}r $xdir"
  881. +      $run ${rm}r "$xdir"
  882. +      $show "mkdir $xdir"
  883. +      $run mkdir "$xdir"
  884. +      status=$?
  885. +      if test $status -ne 0 && test ! -d "$xdir"; then
  886. +        exit $status
  887. +      fi
  888. +      $show "(cd $xdir && $AR x $xabs)"
  889. +      $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  890. +
  891. +      oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
  892. +    done
  893. +      fi
  894.  
  895.        # Do each command in the archive commands.
  896.        if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  897.      eval cmds=\"$old_archive_from_new_cmds\"
  898.        else
  899. +    # Ensure that we have .o objects in place incase we decided
  900. +    # not to build a shared library, and have fallen back to building
  901. +    # static libs even though --disable-static was passed!
  902. +    for oldobj in $oldobjs; do
  903. +      if test ! -f $oldobj; then
  904. +        obj=`$echo "X$oldobj" | $Xsed -e "$o2lo"`
  905. +        $show "${LN_S} $obj $oldobj"
  906. +        $run ${LN_S} $obj $oldobj || exit $?
  907. +      fi
  908. +    done
  909. +
  910.      eval cmds=\"$old_archive_cmds\"
  911.        fi
  912.        IFS="${IFS=     }"; save_ifs="$IFS"; IFS='~'
  913. @@ -2845,9 +2950,20 @@
  914.  
  915.        # Only create the output if not a dry run.
  916.        if test -z "$run"; then
  917. -    $echo > $output "\
  918. -# $output - a libtool library file
  919. +    for installed in no yes; do
  920. +      if test "$installed" = yes; then
  921. +        if test -z "$install_libdir"; then
  922. +          break
  923. +        fi
  924. +        output="$output_objdir/$outputname"i
  925. +      fi
  926. +      $rm $output
  927. +      $echo > $output "\
  928. +# $outputname - a libtool library file
  929.  # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  930. +#
  931. +# Please DO NOT delete this file!
  932. +# It is necessary for linking the library.
  933.  
  934.  # The name that we can dlopen(3).
  935.  dlname='$dlname'
  936. @@ -2867,15 +2983,12 @@
  937.  revision=$revision
  938.  
  939.  # Is this an already installed library?
  940. -installed=no
  941. +installed=$installed
  942.  
  943.  # Directory that this library needs to be installed in:
  944.  libdir='$install_libdir'\
  945.  "
  946. -
  947. -    $rm "$output_objdir/$outputname"i
  948. -    sed 's/^installed=no$/installed=yes/' \
  949. -      < "$output" > "$output_objdir/$outputname"i || exit 1
  950. +    done
  951.        fi
  952.  
  953.        # Do a symbolic link so that the libtool archive can be found in
  954. @@ -3012,7 +3125,7 @@
  955.        fi
  956.      fi
  957.      case "$destdir" in
  958. -    /* | [A-Za-z]:[/\\]*) ;;
  959. +    [\\/]* | [A-Za-z]:[\\/]*) ;;
  960.      *)
  961.        for file in $files; do
  962.      case "$file" in
  963. @@ -3123,12 +3236,6 @@
  964.      # Install the pseudo-library for information purposes.
  965.      name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  966.      instname="$dir/$name"i
  967. -    if test ! -f "$instname"; then
  968. -      # Just in case it was removed...
  969. -      $show "Creating $instname"
  970. -      $rm "$instname"
  971. -      sed 's/^installed=no$/installed=yes/' "$file" > "$instname"
  972. -    fi
  973.      $show "$install_prog $instname $destdir/$name"
  974.      $run eval "$install_prog $instname $destdir/$name" || exit $?
  975.  
  976. @@ -3226,21 +3333,29 @@
  977.  
  978.        outputname=
  979.        if test "$fast_install" = no && test -n "$relink_command"; then
  980. -        if test "$finalize" = yes; then
  981. -          outputname="/tmp/$$-$file"
  982. +        if test "$finalize" = yes && test -z "$run"; then
  983. +          tmpdir="/tmp"
  984. +          test -n "$TMPDIR" && tmpdir="$TMPDIR"
  985. +          tmpdir="$tmpdir/libtool-$$"
  986. +          if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
  987. +          else
  988. +        $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
  989. +        continue
  990. +          fi
  991. +          outputname="$tmpdir/$file"
  992.            # Replace the output file specification.
  993.            relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  994.  
  995. -          $echo "$modename: warning: relinking \`$file' on behalf of your buggy system linker" 1>&2
  996.            $show "$relink_command"
  997.            if $run eval "$relink_command"; then :
  998.            else
  999.          $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  1000. +        ${rm}r "$tmpdir"
  1001.          continue
  1002.            fi
  1003.            file="$outputname"
  1004.          else
  1005. -          $echo "$modename: warning: cannot relink \`$file' on behalf of your buggy system linker" 1>&2
  1006. +          $echo "$modename: warning: cannot relink \`$file'" 1>&2
  1007.          fi
  1008.        else
  1009.          # Install the binary that we compiled earlier.
  1010. @@ -3250,7 +3365,7 @@
  1011.  
  1012.      $show "$install_prog$stripme $file $destfile"
  1013.      $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  1014. -    test -n "$outputname" && $rm $outputname
  1015. +    test -n "$outputname" && ${rm}r "$tmpdir"
  1016.      ;;
  1017.        esac
  1018.      done
  1019. @@ -3718,6 +3833,8 @@
  1020.    -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  1021.    -export-symbols SYMFILE
  1022.              try to export only the symbols listed in SYMFILE
  1023. +  -export-symbols-regex REGEX
  1024. +            try to export only the symbols matching REGEX
  1025.    -LLIBDIR          search LIBDIR for required installed libraries
  1026.    -lNAME            OUTPUT-FILE requires the installed library libNAME
  1027.    -module           build a library that can dlopened
  1028. @@ -3748,7 +3865,7 @@
  1029.    ;;
  1030.  
  1031.  uninstall)
  1032. -  $echo
  1033. +  $echo \
  1034.  "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  1035.  
  1036.  Remove libraries from an installation directory.
  1037. --- ./ltconfig    Sat Mar 27 14:16:21 1999
  1038. +++ ../gimp-1.0.4/./ltconfig    Thu Jul 15 17:15:33 1999
  1039. @@ -2,7 +2,7 @@
  1040.  
  1041.  # ltconfig - Create a system-specific libtool.
  1042.  # Copyright (C) 1996-1999 Free Software Foundation, Inc.
  1043. -# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  1044. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  1045.  #
  1046.  # This file is free software; you can redistribute it and/or modify it
  1047.  # under the terms of the GNU General Public License as published by
  1048. @@ -32,12 +32,8 @@
  1049.    # Discard the --no-reexec flag, and continue.
  1050.    shift
  1051.  elif test "X$1" = X--fallback-echo; then
  1052. -  # used as fallback echo
  1053. -  shift
  1054. -  cat <<EOF
  1055. -$*
  1056. -EOF
  1057. -  exit 0
  1058. +  # Avoid inline document here, it may be left over
  1059. +  :
  1060.  elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  1061.    # Yippee, $echo works!
  1062.    :
  1063. @@ -46,6 +42,15 @@
  1064.    exec "$SHELL" "$0" --no-reexec ${1+"$@"}
  1065.  fi
  1066.  
  1067. +if test "X$1" = X--fallback-echo; then
  1068. +  # used as fallback echo
  1069. +  shift
  1070. +  cat <<EOF
  1071. +$*
  1072. +EOF
  1073. +  exit 0
  1074. +fi
  1075. +
  1076.  # Find the correct PATH separator.  Usually this is `:', but
  1077.  # DJGPP uses `;' like DOS.
  1078.  if test "X${PATH_SEPARATOR+set}" != "Xset"; then
  1079. @@ -82,7 +87,7 @@
  1080.  
  1081.    IFS="${IFS=     }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  1082.    for dir in $PATH /usr/ucb; do
  1083. -    if test -f $dir/echo &&
  1084. +    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1085.         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1086.         test "X`($dir/echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
  1087.        echo="$dir/echo"
  1088. @@ -97,7 +102,8 @@
  1089.         test "X`(print -r "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
  1090.        # This shell has a builtin print -r that does the trick.
  1091.        echo='print -r'
  1092. -    elif test -f /bin/ksh && test "X$CONFIG_SHELL" != X/bin/ksh; then
  1093. +    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  1094. +     test "X$CONFIG_SHELL" != X/bin/ksh; then
  1095.        # If we have ksh, try running ltconfig again with it.
  1096.        ORIGINAL_CONFIG_SHELL="${CONFIG_SHELL-/bin/sh}"
  1097.        export ORIGINAL_CONFIG_SHELL
  1098. @@ -163,8 +169,8 @@
  1099.  # Constants:
  1100.  PROGRAM=ltconfig
  1101.  PACKAGE=libtool
  1102. -VERSION=1.2f
  1103. -TIMESTAMP=" (1.385 1999/03/15 17:24:54)"
  1104. +VERSION=1.3.2
  1105. +TIMESTAMP=" (1.385.2.150 1999/05/26 00:28:32)"
  1106.  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5'
  1107.  ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5'
  1108.  rm="rm -f"
  1109. @@ -179,6 +185,7 @@
  1110.  enable_static=yes
  1111.  enable_fast_install=yes
  1112.  enable_dlopen=unknown
  1113. +enable_win32_dll=no
  1114.  ltmain=
  1115.  silent=
  1116.  srcdir=
  1117. @@ -200,11 +207,14 @@
  1118.  old_CC="$CC"
  1119.  old_CFLAGS="$CFLAGS"
  1120.  old_CPPFLAGS="$CPPFLAGS"
  1121. +old_LDFLAGS="$LDFLAGS"
  1122.  old_LD="$LD"
  1123.  old_LN_S="$LN_S"
  1124. +old_LIBS="$LIBS"
  1125.  old_NM="$NM"
  1126.  old_RANLIB="$RANLIB"
  1127.  old_DLLTOOL="$DLLTOOL"
  1128. +old_OBJDUMP="$OBJDUMP"
  1129.  old_AS="$AS"
  1130.  
  1131.  # Parse the command line options.
  1132. @@ -235,7 +245,7 @@
  1133.      --disable-static       do not build static libraries
  1134.      --disable-fast-install do not optimize for fast installation
  1135.      --enable-dlopen        enable dlopen support
  1136. -    --enable-dlopen-self   enable support for dlopening programs
  1137. +    --enable-win32-dll     enable building dlls on win32 hosts
  1138.      --help                 display this help and exit
  1139.      --no-verify            do not verify that HOST is a valid host type
  1140.  -o, --output=FILE          specify the output file [default=$default_ofile]
  1141. @@ -269,6 +279,8 @@
  1142.  
  1143.    --enable-dlopen) enable_dlopen=yes ;;
  1144.  
  1145. +  --enable-win32-dll) enable_win32_dll=yes ;;
  1146. +
  1147.    --quiet | --silent) silent=yes ;;
  1148.  
  1149.    --srcdir) prev=srcdir ;;
  1150. @@ -463,6 +475,9 @@
  1151.  # Set a sane default for `AR'.
  1152.  test -z "$AR" && AR=ar
  1153.  
  1154. +# Set a sane default for `OBJDUMP'.
  1155. +test -z "$OBJDUMP" && OBJDUMP=objdump
  1156. +
  1157.  # If RANLIB is not set, then run the test.
  1158.  if test "${RANLIB+set}" != "set"; then
  1159.    result=no
  1160. @@ -471,7 +486,7 @@
  1161.    IFS="${IFS=     }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  1162.    for dir in $PATH; do
  1163.      test -z "$dir" && dir=.
  1164. -    if test -f $dir/ranlib; then
  1165. +    if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then
  1166.        RANLIB="ranlib"
  1167.        result="ranlib"
  1168.        break
  1169. @@ -487,8 +502,9 @@
  1170.    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  1171.  fi
  1172.  
  1173. -# Set sane defaults for `DLLTOOL' and `AS', used on cygwin.
  1174. +# Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin.
  1175.  test -z "$DLLTOOL" && DLLTOOL=dlltool
  1176. +test -z "$OBJDUMP" && OBJDUMP=objdump
  1177.  test -z "$AS" && AS=as
  1178.  
  1179.  # Check to see if we are using GCC.
  1180. @@ -498,9 +514,8 @@
  1181.      echo $ac_n "checking for gcc... $ac_c" 1>&6
  1182.      IFS="${IFS=     }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  1183.      for dir in $PATH; do
  1184. -      IFS="$save_ifs"
  1185.        test -z "$dir" && dir=.
  1186. -      if test -f $dir/gcc; then
  1187. +      if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then
  1188.      CC="gcc"
  1189.      break
  1190.        fi
  1191. @@ -521,7 +536,7 @@
  1192.      cc_rejected=no
  1193.      for dir in $PATH; do
  1194.        test -z "$dir" && dir=.
  1195. -      if test -f $dir/cc; then
  1196. +      if test -f $dir/cc || test -f $dir/cc$ac_exeext; then
  1197.      if test "$dir/cc" = "/usr/ucb/cc"; then
  1198.        cc_rejected=yes
  1199.        continue
  1200. @@ -561,7 +576,7 @@
  1201.    # Now see if the compiler is really GCC.
  1202.    with_gcc=no
  1203.    echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
  1204. -  echo "$progname:564: checking whether we are using GNU C" >&5
  1205. +  echo "$progname:579: checking whether we are using GNU C" >&5
  1206.  
  1207.    $rm conftest.c
  1208.    cat > conftest.c <<EOF
  1209. @@ -569,7 +584,7 @@
  1210.    yes;
  1211.  #endif
  1212.  EOF
  1213. -  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1214. +  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1215.      with_gcc=yes
  1216.    fi
  1217.    $rm conftest.c
  1218. @@ -583,8 +598,8 @@
  1219.  echo $ac_n "checking for object suffix... $ac_c" 1>&6
  1220.  $rm conftest*
  1221.  echo 'int i = 1;' > conftest.c
  1222. -echo "$progname:586: checking for object suffix" >& 5
  1223. -if { (eval echo $progname:587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
  1224. +echo "$progname:601: checking for object suffix" >& 5
  1225. +if { (eval echo $progname:602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
  1226.    # Append any warnings to the config.log.
  1227.    cat conftest.err 1>&5
  1228.  
  1229. @@ -635,6 +650,11 @@
  1230.      # like `-m68040'.
  1231.      pic_flag='-m68020 -resident32 -malways-restore-a4'
  1232.      ;;
  1233. +  sysv4*MP*)
  1234. +    if test -d /usr/nec; then
  1235. +       pic_flag=-Kconform_pic
  1236. +    fi
  1237. +    ;;
  1238.    *)
  1239.      pic_flag='-fPIC'
  1240.      ;;
  1241. @@ -688,7 +708,7 @@
  1242.      wl='-Qoption ld '
  1243.      ;;
  1244.  
  1245. -  sysv4.2uw2* | sysv4.3* | sysv5*)
  1246. +  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1247.      pic_flag='-KPIC'
  1248.      link_static_flag='-Bstatic'
  1249.      wl='-Wl,'
  1250. @@ -698,7 +718,12 @@
  1251.      pic_flag='-pic'
  1252.      link_static_flag='-Bstatic'
  1253.      ;;
  1254. -
  1255. +  sysv4*MP*)
  1256. +    if test -d /usr/nec ;then
  1257. +      pic_flag='-Kconform_pic'
  1258. +      link_static_flag='-Bstatic'
  1259. +    fi
  1260. +    ;;
  1261.    *)
  1262.      can_build_shared=no
  1263.      ;;
  1264. @@ -714,8 +739,8 @@
  1265.    echo "int some_variable = 0;" > conftest.c
  1266.    save_CFLAGS="$CFLAGS"
  1267.    CFLAGS="$CFLAGS $pic_flag -DPIC"
  1268. -  echo "$progname:717: checking if $compiler PIC flag $pic_flag works" >&5
  1269. -  if { (eval echo $progname:718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
  1270. +  echo "$progname:742: checking if $compiler PIC flag $pic_flag works" >&5
  1271. +  if { (eval echo $progname:743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
  1272.      # Append any warnings to the config.log.
  1273.      cat conftest.err 1>&5
  1274.      
  1275. @@ -753,16 +778,26 @@
  1276.  
  1277.  # Check to see if options -o and -c are simultaneously supported by compiler
  1278.  echo $ac_n "checking if $compiler supports -c -o file.o... $ac_c" 1>&6
  1279. +$rm -r conftest 2>/dev/null
  1280. +mkdir conftest
  1281. +cd conftest
  1282.  $rm conftest*
  1283.  echo "int some_variable = 0;" > conftest.c
  1284. +mkdir out
  1285. +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  1286. +# that will create temporary files in the current directory regardless of
  1287. +# the output directory.  Thus, making CWD read-only will cause this test
  1288. +# to fail, enabling locking or at least warning the user not to do parallel
  1289. +# builds.
  1290. +chmod -w .
  1291.  save_CFLAGS="$CFLAGS"
  1292. -CFLAGS="$CFLAGS -c -o conftest2.o"
  1293. -echo "$progname:760: checking if $compiler supports -c -o file.o" >&5
  1294. -if { (eval echo $progname:761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest2.o; then
  1295. +CFLAGS="$CFLAGS -o out/conftest2.o"
  1296. +echo "$progname:795: checking if $compiler supports -c -o file.o" >&5
  1297. +if { (eval echo $progname:796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.o; then
  1298.  
  1299.    # The compiler can only warn and ignore the option if not recognized
  1300.    # So say no if there are warnings
  1301. -    if test -s conftest.err; then
  1302. +    if test -s out/conftest.err; then
  1303.        echo "$ac_t"no 1>&6
  1304.        compiler_c_o=no
  1305.      else
  1306. @@ -771,12 +806,17 @@
  1307.      fi
  1308.  else
  1309.    # Append any errors to the config.log.
  1310. -  cat conftest.err 1>&5
  1311. +  cat out/conftest.err 1>&5
  1312.    compiler_c_o=no
  1313.    echo "$ac_t"no 1>&6
  1314.  fi
  1315.  CFLAGS="$save_CFLAGS"
  1316. -$rm conftest*
  1317. +chmod u+w .
  1318. +$rm conftest* out/*
  1319. +rmdir out
  1320. +cd ..
  1321. +rmdir conftest
  1322. +$rm -r conftest 2>/dev/null
  1323.  
  1324.  if test x"$compiler_c_o" = x"yes"; then
  1325.    # Check to see if we can write to a .lo
  1326. @@ -785,8 +825,8 @@
  1327.    echo "int some_variable = 0;" > conftest.c
  1328.    save_CFLAGS="$CFLAGS"
  1329.    CFLAGS="$CFLAGS -c -o conftest.lo"
  1330. -  echo "$progname:788: checking if $compiler supports -c -o file.lo" >&5
  1331. -if { (eval echo $progname:789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then
  1332. +  echo "$progname:828: checking if $compiler supports -c -o file.lo" >&5
  1333. +if { (eval echo $progname:829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then
  1334.  
  1335.      # The compiler can only warn and ignore the option if not recognized
  1336.      # So say no if there are warnings
  1337. @@ -837,8 +877,8 @@
  1338.    echo "int some_variable = 0;" > conftest.c
  1339.    save_CFLAGS="$CFLAGS"
  1340.    CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.c"
  1341. -  echo "$progname:840: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  1342. -  if { (eval echo $progname:841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
  1343. +  echo "$progname:880: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  1344. +  if { (eval echo $progname:881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
  1345.  
  1346.      # The compiler can only warn and ignore the option if not recognized
  1347.      # So say no if there are warnings
  1348. @@ -881,8 +921,8 @@
  1349.  echo 'main(){return(0);}' > conftest.c
  1350.  save_LDFLAGS="$LDFLAGS"
  1351.  LDFLAGS="$LDFLAGS $link_static_flag"
  1352. -echo "$progname:884: checking if $compiler static flag $link_static_flag works" >&5
  1353. -if { (eval echo $progname:885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1354. +echo "$progname:924: checking if $compiler static flag $link_static_flag works" >&5
  1355. +if { (eval echo $progname:925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1356.    echo "$ac_t$link_static_flag" 1>&6
  1357.  else
  1358.    echo "$ac_t"none 1>&6
  1359. @@ -894,9 +934,9 @@
  1360.  if test -z "$LN_S"; then
  1361.    # Check to see if we can use ln -s, or we need hard links.
  1362.    echo $ac_n "checking whether ln -s works... $ac_c" 1>&6
  1363. -  $rm conftestdata
  1364. -  if ln -s X conftestdata 2>/dev/null; then
  1365. -    $rm conftestdata
  1366. +  $rm conftest.dat
  1367. +  if ln -s X conftest.dat 2>/dev/null; then
  1368. +    $rm conftest.dat
  1369.      LN_S="ln -s"
  1370.    else
  1371.      LN_S=ln
  1372. @@ -914,11 +954,11 @@
  1373.    if test "$with_gcc" = yes; then
  1374.      # Check if gcc -print-prog-name=ld gives a path.
  1375.      echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6
  1376. -    echo "$progname:917: checking for ld used by GCC" >&5
  1377. +    echo "$progname:957: checking for ld used by GCC" >&5
  1378.      ac_prog=`($CC -print-prog-name=ld) 2>&5`
  1379.      case "$ac_prog" in
  1380.      # Accept absolute paths.
  1381. -    /* | [A-Za-z]:[\\/]*)
  1382. +    [\\/]* | [A-Za-z]:[\\/]*)
  1383.        re_direlt='/[^/][^/]*/\.\./'
  1384.        # Canonicalize the path of ld
  1385.        ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1386. @@ -938,10 +978,10 @@
  1387.      esac
  1388.    elif test "$with_gnu_ld" = yes; then
  1389.      echo $ac_n "checking for GNU ld... $ac_c" 1>&6
  1390. -    echo "$progname:941: checking for GNU ld" >&5
  1391. +    echo "$progname:981: checking for GNU ld" >&5
  1392.    else
  1393.      echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1394. -    echo "$progname:944: checking for non-GNU ld" >&5
  1395. +    echo "$progname:984: checking for non-GNU ld" >&5
  1396.    fi
  1397.  
  1398.    if test -z "$LD"; then
  1399. @@ -948,7 +988,7 @@
  1400.      IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  1401.      for ac_dir in $PATH; do
  1402.        test -z "$ac_dir" && ac_dir=.
  1403. -      if test -f "$ac_dir/$ac_prog"; then
  1404. +      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1405.      LD="$ac_dir/$ac_prog"
  1406.      # Check to see if the program is GNU ld.  I'd rather use --version,
  1407.      # but apparently some GNU ld's only accept -v.
  1408. @@ -1015,7 +1055,12 @@
  1409.  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  1410.  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  1411.  # as well as any symbol that contains `d'.
  1412. -exclude_expsyms=
  1413. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  1414. +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  1415. +# platforms (ab)use it in PIC code, but their linkers get confused if
  1416. +# the symbol is explicitly referenced.  Since portable code cannot
  1417. +# rely on this symbol name, it's probably fine to never include it in
  1418. +# preloaded symbol tables.
  1419.  
  1420.  case "$host_os" in
  1421.  cygwin* | mingw*)
  1422. @@ -1027,10 +1072,6 @@
  1423.    fi
  1424.    ;;
  1425.  
  1426. -freebsd2* | sunos4*)
  1427. -  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  1428. -  ;;
  1429. -
  1430.  esac
  1431.  
  1432.  ld_shlibs=yes
  1433. @@ -1058,18 +1099,21 @@
  1434.      archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
  1435.      hardcode_libdir_flag_spec='-L$libdir'
  1436.      hardcode_minus_L=yes
  1437. -    ;;
  1438.  
  1439. -  sunos4*)
  1440. -    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
  1441. -    wlarc=
  1442. -    hardcode_direct=yes
  1443. -    hardcode_minus_L=yes
  1444. -    hardcode_shlibpath_var=no
  1445. +    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  1446. +    # that the semantics of dynamic libraries on AmigaOS, at least up
  1447. +    # to version 4, is to share data among multiple programs linked
  1448. +    # with the same dynamic library.  Since this doesn't match the
  1449. +    # behavior of shared libraries on other platforms, we can use
  1450. +    # them.
  1451. +    ld_shlibs=no
  1452.      ;;
  1453.  
  1454.    beos*)
  1455.      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1456. +      allow_undefined_flag=unsupported
  1457. +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  1458. +      # support --undefined.  This deserves some investigation.  FIXME
  1459.        archive_cmds='$CC -nostart $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  1460.      else
  1461.        ld_shlibs=no
  1462. @@ -1087,7 +1131,7 @@
  1463.      # then regenerate the def file from the symbol export list, so that
  1464.      # the compiled dll only exports the symbol export list.
  1465.      export_symbols_cmds='rm -f $objdir/$soname-ltdll.c~
  1466. -      sed -e "/^# \/\* ltdll.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
  1467. +      sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
  1468.        (cd $objdir && $CC -c $soname-ltdll.c)~
  1469.        $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def  $objdir/$soname-ltdll.$objext $libobjs~
  1470.        sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]* ; *//" < $objdir/$soname-def > $export_symbols'
  1471. @@ -1095,7 +1139,7 @@
  1472.      archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~
  1473.        _lt_hint=1;
  1474.        for symbol in `cat $export_symbols`; do
  1475. -        echo "    \$symbol @ \$_lt_hint ; " >> $objdir/$soname-def;
  1476. +    echo "    \$symbol @ \$_lt_hint ; " >> $objdir/$soname-def;
  1477.      _lt_hint=`expr 1 + \$_lt_hint`;
  1478.        done~
  1479.        $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
  1480. @@ -1107,6 +1151,44 @@
  1481.        old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a'
  1482.      ;;
  1483.  
  1484. +  netbsd*)
  1485. +    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1486. +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  1487. +      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1488. +    else
  1489. +      archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'
  1490. +      # can we support soname and/or expsyms with a.out? -oliva
  1491. +    fi
  1492. +    ;;
  1493. +
  1494. +  solaris*)
  1495. +    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  1496. +      ld_shlibs=no
  1497. +      cat <<EOF 1>&2
  1498. +
  1499. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  1500. +*** create shared libraries on Solaris systems.  Therefore, libtool
  1501. +*** is disabling shared libraries support.  We urge you to upgrade GNU
  1502. +*** binutils to release 2.9.1 or newer.  Another option is to modify
  1503. +*** your PATH or compiler configuration so that the native linker is
  1504. +*** used, and then restart.
  1505. +
  1506. +EOF
  1507. +    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1508. +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  1509. +      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1510. +    else
  1511. +      ld_shlibs=no
  1512. +    fi
  1513. +    ;;      
  1514. +
  1515. +  sunos4*)
  1516. +    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts'
  1517. +    wlarc=
  1518. +    hardcode_direct=yes
  1519. +    hardcode_shlibpath_var=no
  1520. +    ;;
  1521. +
  1522.    *)
  1523.      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1524.        archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  1525. @@ -1121,7 +1203,15 @@
  1526.      runpath_var=LD_RUN_PATH
  1527.      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  1528.      export_dynamic_flag_spec='${wl}--export-dynamic'
  1529. -    whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1530. +    case $host_os in
  1531. +    cygwin* | mingw*)
  1532. +      # dlltool doesn't understand --whole-archive et. al.
  1533. +      whole_archive_flag_spec=
  1534. +      ;;
  1535. +    *)
  1536. +      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1537. +      ;;
  1538. +    esac
  1539.    fi
  1540.  else
  1541.    # PORTME fill in a description of your system's linker (not GNU ld)
  1542. @@ -1141,10 +1231,12 @@
  1543.      ;;
  1544.  
  1545.    aix4*)
  1546. -    allow_undefined_flag=
  1547. +    hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
  1548. +    hardcode_libdir_separator=':'
  1549.      if test "$with_gcc" = yes; then
  1550. -      if strings `${CC} -print-prog-name=collect2` | \
  1551. -     grep resolve_lib_name >/dev/null
  1552. +      collect2name=`${CC} -print-prog-name=collect2`
  1553. +      if test -f "$collect2name" && \
  1554. +     strings "$collect2name" | grep resolve_lib_name >/dev/null
  1555.        then
  1556.      # We have reworked collect2
  1557.      hardcode_direct=yes
  1558. @@ -1151,19 +1243,25 @@
  1559.        else
  1560.      # We have old collect2
  1561.      hardcode_direct=unsupported
  1562. +    # It fails to find uninstalled libraries when the uninstalled
  1563. +    # path is not listed in the libpath.  Setting hardcode_minus_L
  1564. +    # to unsupported forces relinking
  1565. +    hardcode_minus_L=yes
  1566. +    hardcode_libdir_flag_spec='-L$libdir'
  1567. +    hardcode_libdir_separator=
  1568.        fi
  1569. -      archive_cmds='$CC -shared ${wl}-bnoentry -o $objdir/$soname $libobjs $deplibs $linkopts'
  1570. +      shared_flag='-shared'
  1571.      else
  1572. -      always_export_symbols=yes
  1573. -      archive_expsym_cmds='$CC -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bM:SRE ${wl}-bnoentry'
  1574. +      shared_flag='${wl}-bM:SRE'
  1575.        hardcode_direct=yes
  1576.      fi
  1577. -    hardcode_minus_L=yes
  1578. -    # Though LIBPATH variable hardcodes shlibpath into executable,
  1579. -    # it doesn't affect searching for -l* libraries; this confuses
  1580. -    # tests in mdemo.
  1581. -    hardcode_shlibpath_var=unsupported
  1582. -    hardcode_libdir_flag_spec='-L$libdir'
  1583. +    allow_undefined_flag=' ${wl}-berok'
  1584. +    archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
  1585. +    archive_expsym_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
  1586. +    case "$host_os" in aix4.[01]|aix4.[01].*)
  1587. +      # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
  1588. +      always_export_symbols=yes ;;
  1589. +    esac
  1590.     ;;
  1591.  
  1592.    amigaos*)
  1593. @@ -1170,6 +1268,8 @@
  1594.      archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
  1595.      hardcode_libdir_flag_spec='-L$libdir'
  1596.      hardcode_minus_L=yes
  1597. +    # see comment about different semantics on the GNU ld section
  1598. +    ld_shlibs=no
  1599.      ;;
  1600.  
  1601.    cygwin* | mingw*)
  1602. @@ -1192,7 +1292,6 @@
  1603.  
  1604.    freebsd1*)
  1605.      ld_shlibs=no
  1606. -    can_build_shared=no
  1607.      ;;
  1608.  
  1609.    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  1610. @@ -1203,7 +1302,6 @@
  1611.      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o'
  1612.      hardcode_libdir_flag_spec='-R$libdir'
  1613.      hardcode_direct=yes
  1614. -    hardcode_minus_L=no # verified on 2.2.6
  1615.      hardcode_shlibpath_var=no
  1616.      ;;
  1617.  
  1618. @@ -1220,31 +1318,27 @@
  1619.      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
  1620.      hardcode_libdir_flag_spec='-R$libdir'
  1621.      hardcode_direct=yes
  1622. -    hardcode_minus_L=no
  1623.      hardcode_shlibpath_var=no
  1624.      ;;
  1625.  
  1626. -  hpux9*)
  1627. -    archive_cmds='$rm $objdir/$soname~$LD -b +s +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib'
  1628. -    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  1629. -    hardcode_direct=yes
  1630. -    hardcode_minus_L=yes
  1631. -    export_dynamic_flag_spec='${wl}-E'
  1632. -    ;;
  1633. -
  1634. -  hpux10* | hpux11*)
  1635. -    archive_cmds='$LD -b +h $soname +s +b $install_libdir -o $lib $libobjs $deplibs $linkopts'
  1636. +  hpux9* | hpux10* | hpux11*)
  1637. +    case "$host_os" in
  1638. +    hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
  1639. +    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;;
  1640. +    esac
  1641.      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  1642. +    hardcode_libdir_separator=:
  1643.      hardcode_direct=yes
  1644. -    hardcode_minus_L=yes
  1645. +    hardcode_minus_L=yes # Not in the search PATH, but as the default
  1646. +             # location of the library.
  1647.      export_dynamic_flag_spec='${wl}-E'
  1648.      ;;
  1649.  
  1650.    irix5* | irix6*)
  1651.      if test "$with_gcc" = yes; then
  1652. -      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  1653. +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  1654.      else
  1655. -      archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
  1656. +      archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  1657.      fi
  1658.      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1659.      hardcode_libdir_separator=:
  1660. @@ -1279,10 +1373,10 @@
  1661.    osf3* | osf4*)
  1662.      if test "$with_gcc" = yes; then
  1663.        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  1664. -      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  1665. +      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  1666.      else
  1667.        allow_undefined_flag=' -expect_unresolved \*'
  1668. -      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
  1669. +      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  1670.      fi
  1671.      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1672.      hardcode_libdir_separator=:
  1673. @@ -1289,8 +1383,10 @@
  1674.      ;;
  1675.  
  1676.    sco3.2v5*)
  1677. -    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linkopts'
  1678. -    hardcode_direct=yes
  1679. +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1680. +    hardcode_shlibpath_var=no
  1681. +    runpath_var=LD_RUN_PATH
  1682. +    hardcode_runpath_var=yes
  1683.      ;;
  1684.  
  1685.    solaris*)
  1686. @@ -1302,16 +1398,15 @@
  1687.          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
  1688.      hardcode_libdir_flag_spec='-R$libdir'
  1689.      hardcode_shlibpath_var=no
  1690. +    case "$host_os" in
  1691. +    solaris2.[0-5] | solaris2.[0-5].*) ;;
  1692. +    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  1693. +      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  1694. +    esac
  1695.      ;;
  1696.  
  1697.    sunos4*)
  1698. -    # Why do we need -Bstatic?  To avoid inter-library dependencies, maybe...
  1699. -    if test "$with_gcc" = yes; then
  1700. -      # Use -fPIC here because libgcc is multilibbed
  1701. -      archive_cmds='$CC -shared ${wl}-Bstatic -fPIC -o $lib $libobjs $deplibs $linkopts'
  1702. -    else
  1703. -      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
  1704. -    fi
  1705. +    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
  1706.      hardcode_libdir_flag_spec='-L$libdir'
  1707.      hardcode_direct=yes
  1708.      hardcode_minus_L=yes
  1709. @@ -1318,10 +1413,15 @@
  1710.      hardcode_shlibpath_var=no
  1711.      ;;
  1712.  
  1713. +  sysv4)
  1714. +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1715. +    runpath_var='LD_RUN_PATH'
  1716. +    hardcode_shlibpath_var=no
  1717. +    hardcode_direct=no #Motorola manual says yes, but my tests say they lie 
  1718. +    ;;  
  1719. +
  1720.    sysv4.3*)
  1721.      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1722. -    hardcode_direct=no
  1723. -    hardcode_minus_L=no
  1724.      hardcode_shlibpath_var=no
  1725.      export_dynamic_flag_spec='-Bexport'
  1726.      ;;
  1727. @@ -1329,8 +1429,6 @@
  1728.    uts4*)
  1729.      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1730.      hardcode_libdir_flag_spec='-L$libdir'
  1731. -    hardcode_direct=no
  1732. -    hardcode_minus_L=no
  1733.      hardcode_shlibpath_var=no
  1734.      ;;
  1735.  
  1736. @@ -1337,28 +1435,37 @@
  1737.    dgux*)
  1738.      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1739.      hardcode_libdir_flag_spec='-L$libdir'
  1740. -    hardcode_direct=no
  1741. -    hardcode_minus_L=no
  1742. +    hardcode_shlibpath_var=no
  1743. +    ;;
  1744. +
  1745. +  sysv4*MP*)
  1746. +    if test -d /usr/nec ;then
  1747. +    # archive_cmds='$LD -G -z text -h $soname -o $lib$libobjs$deplibs'
  1748. +    archive_cmds='$LD -G -h $soname -o $lib$libobjs$deplibs'
  1749.      hardcode_shlibpath_var=no
  1750. +    runpath_var=LD_RUN_PATH
  1751. +    hardcode_runpath_var=yes
  1752. +    ld_shlibs=yes
  1753. +    fi
  1754.      ;;
  1755.  
  1756.    *)
  1757.      ld_shlibs=no
  1758. -    can_build_shared=no
  1759.      ;;
  1760.    esac
  1761.  fi
  1762.  echo "$ac_t$ld_shlibs" 1>&6
  1763. +test "$ld_shlibs" = no && can_build_shared=no
  1764.  
  1765.  if test -z "$NM"; then
  1766.    echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6
  1767.    case "$NM" in
  1768. -  /* | [A-Za-z]:[/\\]*) ;; # Let the user override the test with a path.
  1769. +  [\\/]* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path.
  1770.    *)
  1771.      IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  1772.      for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do
  1773.        test -z "$ac_dir" && ac_dir=.
  1774. -      if test -f $ac_dir/nm; then
  1775. +      if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext; then
  1776.      # Check to see if the nm accepts a BSD-compat flag.
  1777.      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1778.      #   nm: unknown option "B" ignored
  1779. @@ -1416,6 +1523,9 @@
  1780.  solaris*)
  1781.    symcode='[BDT]'
  1782.    ;;
  1783. +sysv4)
  1784. +  symcode='[DFNSTU]'
  1785. +  ;;
  1786.  esac
  1787.  
  1788.  # If we're using GNU nm, then use its standard symbol codes.
  1789. @@ -1444,11 +1554,11 @@
  1790.  main(){nm_test_var='a';nm_test_func();return(0);}
  1791.  EOF
  1792.  
  1793. -  echo "$progname:1447: checking if global_symbol_pipe works" >&5
  1794. -  if { (eval echo $progname:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
  1795. +  echo "$progname:1557: checking if global_symbol_pipe works" >&5
  1796. +  if { (eval echo $progname:1558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
  1797.      # Now try to grab the symbols.
  1798.      nlist=conftest.nm
  1799. -    if { echo "$progname:1451: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
  1800. +    if { echo "$progname:1561: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
  1801.  
  1802.        # Try sorting and uniquifying the output.
  1803.        if sort "$nlist" | uniq > "$nlist"T; then
  1804. @@ -1495,12 +1605,12 @@
  1805.  #endif
  1806.  EOF
  1807.        # Now try linking the two files.
  1808. -      mv conftest.$objext conftestm.$objext
  1809. +      mv conftest.$objext conftstm.$objext
  1810.        save_LIBS="$LIBS"
  1811.        save_CFLAGS="$CFLAGS"
  1812. -      LIBS="conftestm.$objext"
  1813. +      LIBS="conftstm.$objext"
  1814.        CFLAGS="$CFLAGS$no_builtin_flag"
  1815. -      if { (eval echo $progname:1503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1816. +      if { (eval echo $progname:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1817.          pipe_works=yes
  1818.        else
  1819.          echo "$progname: failed program was:" >&5
  1820. @@ -1520,7 +1630,7 @@
  1821.      echo "$progname: failed program was:" >&5
  1822.      cat conftest.c >&5
  1823.    fi
  1824. -  $rm conftest*
  1825. +  $rm conftest* conftst*
  1826.  
  1827.    # Do not use the global_symbol_pipe unless it works.
  1828.    if test "$pipe_works" = yes; then
  1829. @@ -1529,7 +1639,11 @@
  1830.      global_symbol_pipe=
  1831.    fi
  1832.  done
  1833. -echo "$ac_t$pipe_works" 1>&6
  1834. +if test "$pipe_works" = yes; then
  1835. +  echo "${ac_t}ok" 1>&6
  1836. +else
  1837. +  echo "${ac_t}failed" 1>&6
  1838. +fi
  1839.  
  1840.  if test -z "$global_symbol_pipe"; then
  1841.    global_symbol_to_cdecl=
  1842. @@ -1542,10 +1656,12 @@
  1843.     test -n "$runpath_var"; then
  1844.  
  1845.    # We can hardcode non-existant directories.
  1846. -  if test "$hardcode_direct" != no && \
  1847. -     test "$hardcode_minus_L" != no && \
  1848. -     test "$hardcode_shlibpath_var" != no; then
  1849. -
  1850. +  if test "$hardcode_direct" != no &&
  1851. +     # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1852. +     # have to relink, otherwise we might link with an installed library
  1853. +     # when we should be linking with a yet-to-be-installed one
  1854. +     ## test "$hardcode_shlibpath_var" != no &&
  1855. +     test "$hardcode_minus_L" != no; then
  1856.      # Linking always hardcodes the temporary library directory.
  1857.      hardcode_action=relink
  1858.    else
  1859. @@ -1628,6 +1744,10 @@
  1860.    library_names_spec='${libname}.so'
  1861.    dynamic_linker="$host_os ld.so"
  1862.    shlibpath_var=LIBRARY_PATH
  1863. +  deplibs_check_method=pass_all
  1864. +  lt_cv_dlopen="load_add_on"
  1865. +  lt_cv_dlopen_libs=
  1866. +  lt_cv_dlopen_self=yes
  1867.    ;;
  1868.  
  1869.  bsdi4*)
  1870. @@ -1634,7 +1754,7 @@
  1871.    version_type=linux
  1872.    library_names_spec='${libname}.so$major ${libname}.so'
  1873.    soname_spec='${libname}.so'
  1874. -  finish_cmds='PATH="$PATH:/sbin" ldconfig $libdir'
  1875. +  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1876.    shlibpath_var=LD_LIBRARY_PATH
  1877.    deplibs_check_method='file_magic ELF 32-bit LSB shared object'
  1878.    file_magic_cmd=/usr/bin/file
  1879. @@ -1654,11 +1774,13 @@
  1880.      library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  1881.    fi
  1882.    dynamic_linker='Win32 ld.exe'
  1883. -  deplibs_check_method='file_magic file format pei*-i386.*architecture: i386'
  1884. -  file_magic_cmd='objdump -f'
  1885. +  deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  1886. +  file_magic_cmd='${OBJDUMP} -f'
  1887.    need_lib_prefix=no
  1888.    # FIXME: first we should search . and the directory the executable is in
  1889.    shlibpath_var=PATH
  1890. +  lt_cv_dlopen="LoadLibrary"
  1891. +  lt_cv_dlopen_libs=
  1892.    ;;
  1893.  
  1894.  freebsd1*)
  1895. @@ -1683,7 +1805,7 @@
  1896.        need_version=yes
  1897.        ;;
  1898.    esac
  1899. -  finish_cmds='PATH="$PATH:/sbin" OBJFORMAT="'"$objformat"'" ldconfig -m $libdir'
  1900. +  finish_cmds='PATH="\$PATH:/sbin" OBJFORMAT="'"$objformat"'" ldconfig -m $libdir'
  1901.    shlibpath_var=LD_LIBRARY_PATH
  1902.    ;;
  1903.  
  1904. @@ -1701,6 +1823,7 @@
  1905.    need_lib_prefix=no
  1906.    need_version=no
  1907.    shlibpath_var=SHLIB_PATH
  1908. +  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1909.    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  1910.    soname_spec='${libname}${release}.sl$major'
  1911.    # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1912. @@ -1707,40 +1830,36 @@
  1913.    postinstall_cmds='chmod 555 $lib'
  1914.    ;;
  1915.  
  1916. -irix5*)
  1917. -  version_type=irix
  1918. -  soname_spec='${libname}${release}.so'
  1919. -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  1920. -  shlibpath_var=LD_LIBRARY_PATH
  1921. -  deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" # or should it be pass_all?
  1922. -  file_magic_cmd=/usr/bin/file
  1923. -  file_magic_test_file=`echo /lib/libc.so*`
  1924. -  shlibpath_overrides_runpath=no
  1925. -  ;;
  1926. -
  1927. -irix6*)
  1928. +irix5* | irix6*)
  1929.    version_type=irix
  1930.    need_lib_prefix=no
  1931.    need_version=no
  1932. -  soname_spec='${libname}${release}.so'
  1933. -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  1934. -  case "$LD" in # libtool.m4 will add one of these switches to LD
  1935. -  *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  1936. -  *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  1937. -  *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1938. -  *) libsuff= shlibsuff= libmagic=never-match;;
  1939. +  soname_spec='${libname}${release}.so.$major'
  1940. +  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so $libname.so'
  1941. +  case "$host_os" in
  1942. +  irix5*)
  1943. +    libsuff= shlibsuff=
  1944. +    # this will be overridden with pass_all, but let us keep it just in case
  1945. +    deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  1946. +    ;;
  1947. +  *)
  1948. +    case "$LD" in # libtool.m4 will add one of these switches to LD
  1949. +    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  1950. +    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  1951. +    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1952. +    *) libsuff= shlibsuff= libmagic=never-match;;
  1953. +    esac
  1954. +    # this will be overridden with pass_all, but let us keep it just in case
  1955. +    deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  1956. +    ;;
  1957.    esac
  1958.    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1959.    shlibpath_overrides_runpath=no
  1960. -  # even though /usr/local/lib is always searched, the man-page says
  1961. -  # shared libraries should not be installed there if they use an ABI
  1962. -  # different from -32, so we'd better not search for shared libraries
  1963. -  # there either
  1964. -  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  1965. -  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  1966. -  deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" # or should it be pass_all?
  1967. +  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1968. +  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1969.    file_magic_cmd=/usr/bin/file
  1970.    file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  1971. +  deplibs_check_method='pass_all'
  1972.    ;;
  1973.  
  1974.  # No shared lib support for Linux oldld, aout, or coff.
  1975. @@ -1755,7 +1874,7 @@
  1976.    need_version=no
  1977.    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1978.    soname_spec='${libname}${release}.so$major'
  1979. -  finish_cmds='PATH="$PATH:/sbin" ldconfig -n $libdir'
  1980. +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1981.    shlibpath_var=LD_LIBRARY_PATH
  1982.    shlibpath_overrides_runpath=no
  1983.    deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  1984. @@ -1777,7 +1896,7 @@
  1985.    version_type=sunos
  1986.    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1987.      library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  1988. -    finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
  1989. +    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1990.      dynamic_linker='NetBSD (a.out) ld.so'
  1991.    else
  1992.      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  1993. @@ -1808,17 +1927,15 @@
  1994.  
  1995.  osf3* | osf4*)
  1996.    version_type=osf
  1997. +  need_version=no
  1998.    soname_spec='${libname}${release}.so'
  1999.    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  2000.    shlibpath_var=LD_LIBRARY_PATH
  2001. -  # deplibs_check_method='pass_all'
  2002. -  # Although pass_all appears to work, it copies symbols from static libraries
  2003. -  # into shared ones and exports them.  So, when a program is linked with two
  2004. -  # or more libraries that have got copies of the same symbols, link fails
  2005. -  # This was only tested on osf4:
  2006. +  # this will be overridden with pass_all, but let us keep it just in case
  2007.    deplibs_check_method='file_magic COFF format alpha shared library'
  2008.    file_magic_cmd=/usr/bin/file
  2009.    file_magic_test_file=/shlib/libc.so
  2010. +  deplibs_check_method='pass_all'
  2011.    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2012.    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2013.    ;;
  2014. @@ -1857,7 +1974,7 @@
  2015.    need_version=yes
  2016.    ;;
  2017.  
  2018. -sysv4.2uw2* | sysv4.3* | sysv5*)
  2019. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2020.    version_type=linux
  2021.    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2022.    soname_spec='${libname}${release}.so$major'
  2023. @@ -1866,6 +1983,15 @@
  2024.      ncr)
  2025.        deplibs_check_method='pass_all'
  2026.        ;;
  2027. +    motorola)
  2028. +      need_lib_prefix=no
  2029. +      need_version=no
  2030. +      shlibpath_overrides_runpath=no
  2031. +      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2032. +      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  2033. +      file_magic_cmd=/usr/bin/file
  2034. +      file_magic_test_file=`echo /usr/lib/libc.so*`
  2035. +      ;;
  2036.    esac
  2037.    ;;
  2038.  
  2039. @@ -1885,6 +2011,15 @@
  2040.    shlibpath_var=LD_LIBRARY_PATH
  2041.    ;;
  2042.  
  2043. +sysv4*MP*)
  2044. +  if test -d /usr/nec ;then
  2045. +    version_type=linux
  2046. +    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  2047. +    soname_spec='$libname.so.$major'
  2048. +    shlibpath_var=LD_LIBRARY_PATH
  2049. +  fi
  2050. +  ;;
  2051. +
  2052.  *)
  2053.    dynamic_linker=no
  2054.    ;;
  2055. @@ -1895,6 +2030,17 @@
  2056.  # Report the final consequences.
  2057.  echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6
  2058.  
  2059. +# Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in
  2060. +# configure.in, otherwise build static only libraries.
  2061. +case "$host_os" in
  2062. +cygwin* | mingw* | os2*)
  2063. +  if test x$can_build_shared = xyes; then
  2064. +    test x$enable_win32_dll = xno && can_build_shared=no
  2065. +    echo "checking if package supports dlls... $can_build_shared" 1>&6
  2066. +  fi
  2067. +;;
  2068. +esac
  2069. +
  2070.  if test -n "$file_magic_test_file" && test -n "$file_magic_cmd"; then
  2071.    case "$deplibs_check_method" in
  2072.    "file_magic "*)
  2073. @@ -1973,16 +2119,16 @@
  2074.  else
  2075.  if eval "test \"`echo '$''{'lt_cv_dlopen'+set}'`\" != set"; then
  2076.    lt_cv_dlopen=no lt_cv_dlopen_libs=
  2077. -echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  2078. -echo "$progname:1977: checking for dlopen" >&5
  2079. -if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  2080. +echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  2081. +echo "$progname:2123: checking for dlopen in -ldl" >&5
  2082. +ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  2083. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2084.    echo $ac_n "(cached) $ac_c" 1>&6
  2085.  else
  2086. -  cat > conftest.$ac_ext <<EOF
  2087. -#line 1982 "ltconfig"
  2088. -/* System header to define __stub macros and hopefully few prototypes,
  2089. -    which can conflict with char dlopen(); below.  */
  2090. -#include <assert.h>
  2091. +  ac_save_LIBS="$LIBS"
  2092. +LIBS="-ldl  $LIBS"
  2093. +cat > conftest.$ac_ext <<EOF
  2094. +#line 2131 "ltconfig"
  2095.  /* Override any gcc2 internal prototype to avoid an error.  */
  2096.  /* We use char because int might match the return type of a gcc2
  2097.      builtin and then its argument prototype would still apply.  */
  2098. @@ -1989,45 +2135,37 @@
  2099.  char dlopen();
  2100.  
  2101.  int main() {
  2102. -
  2103. -/* The GNU C library defines this for functions which it implements
  2104. -    to always fail with ENOSYS.  Some functions are actually named
  2105. -    something starting with __ and the normal name is an alias.  */
  2106. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  2107. -choke me
  2108. -#else
  2109. -dlopen();
  2110. -#endif
  2111. -
  2112. +dlopen()
  2113.  ; return 0; }
  2114.  EOF
  2115. -if { (eval echo $progname:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2116. +if { (eval echo $progname:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2117.    rm -rf conftest*
  2118. -  eval "ac_cv_func_dlopen=yes"
  2119. +  eval "ac_cv_lib_$ac_lib_var=yes"
  2120.  else
  2121.    echo "$progname: failed program was:" >&5
  2122.    cat conftest.$ac_ext >&5
  2123.    rm -rf conftest*
  2124. -  eval "ac_cv_func_dlopen=no"
  2125. +  eval "ac_cv_lib_$ac_lib_var=no"
  2126.  fi
  2127.  rm -f conftest*
  2128. -fi
  2129. +LIBS="$ac_save_LIBS"
  2130.  
  2131. -if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  2132. +fi
  2133. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2134.    echo "$ac_t""yes" 1>&6
  2135. -  lt_cv_dlopen="dlopen"
  2136. +  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  2137.  else
  2138.    echo "$ac_t""no" 1>&6
  2139. -echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  2140. -echo "$progname:2022: checking for dlopen in -ldl" >&5
  2141. -ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  2142. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2143. +echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  2144. +echo "$progname:2160: checking for dlopen" >&5
  2145. +if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  2146.    echo $ac_n "(cached) $ac_c" 1>&6
  2147.  else
  2148. -  ac_save_LIBS="$LIBS"
  2149. -LIBS="-ldl  $LIBS"
  2150. -cat > conftest.$ac_ext <<EOF
  2151. -#line 2030 "ltconfig"
  2152. +  cat > conftest.$ac_ext <<EOF
  2153. +#line 2165 "ltconfig"
  2154. +/* System header to define __stub macros and hopefully few prototypes,
  2155. +    which can conflict with char dlopen(); below.  */
  2156. +#include <assert.h>
  2157.  /* Override any gcc2 internal prototype to avoid an error.  */
  2158.  /* We use char because int might match the return type of a gcc2
  2159.      builtin and then its argument prototype would still apply.  */
  2160. @@ -2034,29 +2172,36 @@
  2161.  char dlopen();
  2162.  
  2163.  int main() {
  2164. -dlopen()
  2165. +
  2166. +/* The GNU C library defines this for functions which it implements
  2167. +    to always fail with ENOSYS.  Some functions are actually named
  2168. +    something starting with __ and the normal name is an alias.  */
  2169. +#if defined (__stub_dlopen) || defined (__stub___dlopen)
  2170. +choke me
  2171. +#else
  2172. +dlopen();
  2173. +#endif
  2174. +
  2175.  ; return 0; }
  2176.  EOF
  2177. -if { (eval echo $progname:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2178. +if { (eval echo $progname:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2179.    rm -rf conftest*
  2180. -  eval "ac_cv_lib_$ac_lib_var=yes"
  2181. +  eval "ac_cv_func_dlopen=yes"
  2182.  else
  2183.    echo "$progname: failed program was:" >&5
  2184.    cat conftest.$ac_ext >&5
  2185.    rm -rf conftest*
  2186. -  eval "ac_cv_lib_$ac_lib_var=no"
  2187. +  eval "ac_cv_func_dlopen=no"
  2188.  fi
  2189.  rm -f conftest*
  2190. -LIBS="$ac_save_LIBS"
  2191. -
  2192.  fi
  2193. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2194. +if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  2195.    echo "$ac_t""yes" 1>&6
  2196. -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  2197. +  lt_cv_dlopen="dlopen"
  2198.  else
  2199.    echo "$ac_t""no" 1>&6
  2200.  echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
  2201. -echo "$progname:2059: checking for dld_link in -ldld" >&5
  2202. +echo "$progname:2204: checking for dld_link in -ldld" >&5
  2203.  ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
  2204.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2205.    echo $ac_n "(cached) $ac_c" 1>&6
  2206. @@ -2064,7 +2209,7 @@
  2207.    ac_save_LIBS="$LIBS"
  2208.  LIBS="-ldld  $LIBS"
  2209.  cat > conftest.$ac_ext <<EOF
  2210. -#line 2067 "ltconfig"
  2211. +#line 2212 "ltconfig"
  2212.  /* Override any gcc2 internal prototype to avoid an error.  */
  2213.  /* We use char because int might match the return type of a gcc2
  2214.      builtin and then its argument prototype would still apply.  */
  2215. @@ -2074,7 +2219,7 @@
  2216.  dld_link()
  2217.  ; return 0; }
  2218.  EOF
  2219. -if { (eval echo $progname:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2220. +if { (eval echo $progname:2222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2221.    rm -rf conftest*
  2222.    eval "ac_cv_lib_$ac_lib_var=yes"
  2223.  else
  2224. @@ -2093,12 +2238,12 @@
  2225.  else
  2226.    echo "$ac_t""no" 1>&6
  2227.  echo $ac_n "checking for shl_load""... $ac_c" 1>&6
  2228. -echo "$progname:2096: checking for shl_load" >&5
  2229. +echo "$progname:2241: checking for shl_load" >&5
  2230.  if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
  2231.    echo $ac_n "(cached) $ac_c" 1>&6
  2232.  else
  2233.    cat > conftest.$ac_ext <<EOF
  2234. -#line 2101 "ltconfig"
  2235. +#line 2246 "ltconfig"
  2236.  /* System header to define __stub macros and hopefully few prototypes,
  2237.      which can conflict with char shl_load(); below.  */
  2238.  #include <assert.h>
  2239. @@ -2120,7 +2265,7 @@
  2240.  
  2241.  ; return 0; }
  2242.  EOF
  2243. -if { (eval echo $progname:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2244. +if { (eval echo $progname:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2245.    rm -rf conftest*
  2246.    eval "ac_cv_func_shl_load=yes"
  2247.  else
  2248. @@ -2137,54 +2282,47 @@
  2249.    lt_cv_dlopen="shl_load"
  2250.  else
  2251.    echo "$ac_t""no" 1>&6
  2252. -echo $ac_n "checking for LoadLibrary""... $ac_c" 1>&6
  2253. -echo "$progname:2141: checking for LoadLibrary" >&5
  2254. -if eval "test \"`echo '$''{'ac_cv_func_LoadLibrary'+set}'`\" = set"; then
  2255. +echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  2256. +echo "$progname:2286: checking for shl_load in -ldld" >&5
  2257. +ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  2258. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2259.    echo $ac_n "(cached) $ac_c" 1>&6
  2260.  else
  2261. -  cat > conftest.$ac_ext <<EOF
  2262. -#line 2146 "ltconfig"
  2263. -/* System header to define __stub macros and hopefully few prototypes,
  2264. -    which can conflict with char LoadLibrary(); below.  */
  2265. -#include <assert.h>
  2266. +  ac_save_LIBS="$LIBS"
  2267. +LIBS="-ldld  $LIBS"
  2268. +cat > conftest.$ac_ext <<EOF
  2269. +#line 2294 "ltconfig"
  2270. +#include "confdefs.h"
  2271.  /* Override any gcc2 internal prototype to avoid an error.  */
  2272.  /* We use char because int might match the return type of a gcc2
  2273.      builtin and then its argument prototype would still apply.  */
  2274. -char LoadLibrary();
  2275. +char shl_load();
  2276.  
  2277.  int main() {
  2278. -
  2279. -/* The GNU C library defines this for functions which it implements
  2280. -    to always fail with ENOSYS.  Some functions are actually named
  2281. -    something starting with __ and the normal name is an alias.  */
  2282. -#if defined (__stub_LoadLibrary) || defined (__stub___LoadLibrary)
  2283. -choke me
  2284. -#else
  2285. -LoadLibrary();
  2286. -#endif
  2287. -
  2288. +shl_load()
  2289.  ; return 0; }
  2290.  EOF
  2291. -if { (eval echo $progname:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2292. +if { (eval echo $progname:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2293.    rm -rf conftest*
  2294. -  eval "ac_cv_func_LoadLibrary=yes"
  2295. +  eval "ac_cv_lib_$ac_lib_var=yes"
  2296.  else
  2297.    echo "$progname: failed program was:" >&5
  2298.    cat conftest.$ac_ext >&5
  2299.    rm -rf conftest*
  2300. -  eval "ac_cv_func_LoadLibrary=no"
  2301. +  eval "ac_cv_lib_$ac_lib_var=no"
  2302.  fi
  2303.  rm -f conftest*
  2304. -fi
  2305. +LIBS="$ac_save_LIBS"
  2306.  
  2307. -if eval "test \"`echo '$ac_cv_func_'LoadLibrary`\" = yes"; then
  2308. +fi
  2309. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2310.    echo "$ac_t""yes" 1>&6
  2311. -  lt_cv_dlopen="LoadLibrary"
  2312. +  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  2313.  else
  2314.    echo "$ac_t""no" 1>&6
  2315.  fi
  2316.  
  2317. -      
  2318. +
  2319.  fi
  2320.  
  2321.      
  2322. @@ -2207,17 +2345,17 @@
  2323.  for ac_hdr in dlfcn.h; do
  2324.  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2325.  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2326. -echo "$progname:2210: checking for $ac_hdr" >&5
  2327. +echo "$progname:2348: checking for $ac_hdr" >&5
  2328.  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2329.    echo $ac_n "(cached) $ac_c" 1>&6
  2330.  else
  2331.    cat > conftest.$ac_ext <<EOF
  2332. -#line 2215 "ltconfig"
  2333. +#line 2353 "ltconfig"
  2334.  #include <$ac_hdr>
  2335.  int fnord = 0;
  2336.  EOF
  2337.  ac_try="$ac_compile conftest.$ac_ext >/dev/null 2>conftest.out"
  2338. -{ (eval echo $progname:2220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2339. +{ (eval echo $progname:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2340.  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2341.  if test -z "$ac_err"; then
  2342.    rm -rf conftest*
  2343. @@ -2245,7 +2383,7 @@
  2344.      LIBS="$lt_cv_dlopen_libs $LIBS"
  2345.  
  2346.    echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
  2347. -echo "$progname:2248: checking whether a program can dlopen itself" >&5
  2348. +echo "$progname:2386: checking whether a program can dlopen itself" >&5
  2349.  if test "${lt_cv_dlopen_self+set}" = set; then
  2350.    echo $ac_n "(cached) $ac_c" 1>&6
  2351.  else
  2352. @@ -2253,7 +2391,7 @@
  2353.      lt_cv_dlopen_self=cross
  2354.    else
  2355.      cat > conftest.c <<EOF
  2356. -#line 2256 "ltconfig"
  2357. +#line 2394 "ltconfig"
  2358.  
  2359.  #if HAVE_DLFCN_H
  2360.  #include <dlfcn.h>
  2361. @@ -2299,7 +2437,7 @@
  2362.             if(ptr1 || ptr2) exit(0); } exit(1); } 
  2363.  
  2364.  EOF
  2365. -if { (eval echo $progname:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2366. +if { (eval echo $progname:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2367.  then
  2368.    lt_cv_dlopen_self=yes
  2369.  else
  2370. @@ -2318,7 +2456,7 @@
  2371.    if test "$lt_cv_dlopen_self" = yes; then
  2372.      LDFLAGS="$LDFLAGS $link_static_flag"
  2373.    echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
  2374. -echo "$progname:2321: checking whether a statically linked program can dlopen itself" >&5
  2375. +echo "$progname:2459: checking whether a statically linked program can dlopen itself" >&5
  2376.  if test "${lt_cv_dlopen_self_static+set}" = set; then
  2377.    echo $ac_n "(cached) $ac_c" 1>&6
  2378.  else
  2379. @@ -2326,7 +2464,7 @@
  2380.      lt_cv_dlopen_self_static=cross
  2381.    else
  2382.      cat > conftest.c <<EOF
  2383. -#line 2329 "ltconfig"
  2384. +#line 2467 "ltconfig"
  2385.  
  2386.  #if HAVE_DLFCN_H
  2387.  #include <dlfcn.h>
  2388. @@ -2372,7 +2510,7 @@
  2389.      if(ptr1 || ptr2) exit(0); } exit(1); } 
  2390.  
  2391.  EOF
  2392. -if { (eval echo $progname:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2393. +if { (eval echo $progname:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2394.  then
  2395.    lt_cv_dlopen_self_static=yes
  2396.  else
  2397. @@ -2416,8 +2554,10 @@
  2398.  case "$ltmain" in
  2399.  *.sh)
  2400.    # Now quote all the things that may contain metacharacters.
  2401. -  for var in ltecho old_CC old_CFLAGS old_CPPFLAGS old_LD old_NM old_RANLIB \
  2402. -    old_LN_S old_DLLTOOL old_AS AR CC LD LN_S NM LTSHELL LTCONFIG_VERSION \
  2403. +  for var in ltecho old_CC old_CFLAGS old_CPPFLAGS \
  2404. +    old_LD old_LDFLAGS old_LIBS \
  2405. +    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS \
  2406. +    AR CC LD LN_S NM LTSHELL LTCONFIG_VERSION \
  2407.      reload_flag reload_cmds wl \
  2408.      pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  2409.      thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  2410. @@ -2497,8 +2637,9 @@
  2411.  
  2412.  *)
  2413.    # Double-quote the variables that need it (for aesthetics).
  2414. -  for var in old_CC old_CFLAGS old_CPPFLAGS old_LD old_NM old_RANLIB \
  2415. -    old_LN_S old_DLLTOOL old_AS; do
  2416. +  for var in old_CC old_CFLAGS old_CPPFLAGS \
  2417. +    old_LD old_LDFLAGS old_LIBS \
  2418. +    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS; do
  2419.      eval "$var=\\\"\$var\\\""
  2420.    done
  2421.  
  2422. @@ -2518,8 +2659,9 @@
  2423.  # Libtool was configured as follows, on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2424.  #
  2425.  # CC=$old_CC CFLAGS=$old_CFLAGS CPPFLAGS=$old_CPPFLAGS \\
  2426. -# LD=$old_LD NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\
  2427. -# DLLTOOL="$old_DLLTOOL" AS="$old_AS" \\
  2428. +# LD=$old_LD LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS \\
  2429. +# NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\
  2430. +# DLLTOOL=$old_DLLTOOL OBJDUMP=$old_OBJDUMP AS=$old_AS \\
  2431.  #   $0$ltconfig_args
  2432.  #
  2433.  # Compiler and other test output produced by $progname, useful for
  2434. @@ -2565,6 +2707,9 @@
  2435.  # Used on cygwin: DLL creation program.
  2436.  DLLTOOL="$DLLTOOL"
  2437.  
  2438. +# Used on cygwin: object dumper.
  2439. +OBJDUMP="$OBJDUMP"
  2440. +
  2441.  # Used on cygwin: assembler.
  2442.  AS="$AS"
  2443.  
  2444. @@ -2587,7 +2732,7 @@
  2445.  # Additional compiler flags for building library objects.
  2446.  pic_flag=$pic_flag
  2447.  
  2448. -# Does compiler simultaneously support -c and -o options
  2449. +# Does compiler simultaneously support -c and -o options?
  2450.  compiler_c_o=$compiler_c_o
  2451.  
  2452.  # Can we write directly to a .lo ?
  2453. @@ -2657,7 +2802,7 @@
  2454.  # Method to check whether dependent libraries are shared objects.
  2455.  deplibs_check_method=$deplibs_check_method
  2456.  
  2457. -# Command to use when deplibs_check_method == file_magic
  2458. +# Command to use when deplibs_check_method == file_magic.
  2459.  file_magic_cmd=$file_magic_cmd
  2460.  
  2461.  # Flag that allows shared libraries with undefined symbols to be built.
  2462. @@ -2718,16 +2863,16 @@
  2463.  # Fix the shell variable \$srcfile for the compiler.
  2464.  fix_srcfile_path="$fix_srcfile_path"
  2465.  
  2466. -# Set to yes if exported symbols are required
  2467. +# Set to yes if exported symbols are required.
  2468.  always_export_symbols=$always_export_symbols
  2469.  
  2470. -# The command to extract exported symbols
  2471. +# The commands to list exported symbols.
  2472.  export_symbols_cmds=$export_symbols_cmds
  2473.  
  2474. -# Symbols that should not be listed in the preloaded symbols
  2475. +# Symbols that should not be listed in the preloaded symbols.
  2476.  exclude_expsyms=$exclude_expsyms
  2477.  
  2478. -# Symbols that must always be exported
  2479. +# Symbols that must always be exported.
  2480.  include_expsyms=$include_expsyms
  2481.  
  2482.  EOF
  2483.